<?php
namespace app\index\model;

use think\Model;

class TruckLocation extends Model
{
    protected $pk = 'truckid';
    public function getFreightId(){
        return $this->hasMany('OrderRelated','truckid')->field('freightid');;
    }
}
